<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 打印数组 -->
    <script>
        // 1.建立数组
        let arr = ['小明', 'jay', '小红', '小华']
        //进行for循环
        for (let i = 0; i < arr.length; i++) {
            //
            document.write(`第${i}个同学为${arr[i]}<br>`)
        }
    </script>
</body>

</html>